<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-us" lang="en-us">
<head>
  <link href="//gmpg.org/xfn/11" rel="profile">
  <meta http-equiv="content-type" content="text/html; charset=utf-8">
  <meta name="generator" content="Hugo 0.69.0" />

  
  <meta name="viewport" content="width=device-width, initial-scale=1.0">

  <title>个人博客上传 &middot; 郝朝帅的博客</title>

  
  <link type="text/css" rel="stylesheet" href="/blog/css/print.css" media="print">
  <link type="text/css" rel="stylesheet" href="/blog/css/poole.css">
  <link type="text/css" rel="stylesheet" href="/blog/css/syntax.css">
  <link type="text/css" rel="stylesheet" href="/blog/css/hyde.css">
    <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Abril+Fatface|PT+Sans:400,400i,700">


  
  <link rel="apple-touch-icon-precomposed" sizes="144x144" href="/apple-touch-icon-144-precomposed.png">
  <link rel="shortcut icon" href="/favicon.png">

  
  
</head>

  <body class="theme-base-0f ">
  <aside class="sidebar">
  <div class="container sidebar-sticky">
    <div class="sidebar-about">
      <a href="/blog/"><h1>郝朝帅的博客</h1></a>
      <p class="lead">
       我的个人博客 
      </p>
    </div>

    <nav>
      <ul class="sidebar-nav">
        <li><a href="/blog/">Home</a> </li>
        
      </ul>
    </nav>

    <p>&copy; 2020. All rights reserved. </p>
  </div>
</aside>

    <main class="content container">
    <div class="post">
  <h1>个人博客上传</h1>
  <time datetime=2020-04-21T20:04:41&#43;0800 class="post-date">Tue, Apr 21, 2020</time>
  <hr>
<h1 id="博客">博客！</h1>
<h2 id="golang安装">golang安装</h2>
<ol>
<li>点击golang安装包</li>
<li>一直点击Next，</li>
<li>完成之后去配置环境变量</li>
<li>配置好，golang就完成了</li>
</ol>
<h2 id="hugo安装">hugo安装</h2>
<ol>
<li>直接解压缩</li>
<li>拷贝到Go的bin目录下</li>
<li>就OK了</li>
</ol>
<div class="highlight"><pre style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code class="language-python" data-lang="python"><span style="color:#75715e"># 启动hugo服务</span>
hugo server

<span style="color:#75715e"># 新建一个项目</span>
hugo new site <span style="color:#960050;background-color:#1e0010">项目名</span>
<span style="color:#75715e"># 出现Congratulations！说明就新建好了</span>

<span style="color:#75715e"># 进入项目</span>
cd <span style="color:#960050;background-color:#1e0010">项目名</span>

<span style="color:#75715e"># 新建文章</span>
hugo new <span style="color:#960050;background-color:#1e0010">文章名称</span><span style="color:#f92672">.</span>md


<span style="color:#e6db74">&#39;&#39;&#39;
</span><span style="color:#e6db74">项目的文件说明：
</span><span style="color:#e6db74">
</span><span style="color:#e6db74">archetypes	--文本配置文件
</span><span style="color:#e6db74">content		--博客目录
</span><span style="color:#e6db74">data		--数据层面
</span><span style="color:#e6db74">layouts		--布局
</span><span style="color:#e6db74">public		--静态网页生成的都在这里
</span><span style="color:#e6db74">resources	--项目资源
</span><span style="color:#e6db74">static		--静态文件
</span><span style="color:#e6db74">themes		--博客的皮肤
</span><span style="color:#e6db74">	hyde	--主题目录
</span><span style="color:#e6db74">		static
</span><span style="color:#e6db74">			css		--网页样式
</span><span style="color:#e6db74">				hyde.css	--主题的样式也就是布局
</span><span style="color:#e6db74">config.toml	--用来配置网址的配置
</span><span style="color:#e6db74">
</span><span style="color:#e6db74">colorhunt.co --这个网站可以找颜色
</span><span style="color:#e6db74">&#39;&#39;&#39;</span>

<span style="color:#75715e"># 个人网站上传</span>

<span style="color:#75715e"># 项目打包到public里</span>
hugo

<span style="color:#75715e"># 进入public</span>
cd public

<span style="color:#75715e"># </span>
git init

<span style="color:#75715e"># </span>
git add <span style="color:#f92672">-</span>A

<span style="color:#75715e"># </span>
git commit <span style="color:#f92672">-</span>m <span style="color:#e6db74">&#34;描述&#34;</span>

<span style="color:#75715e"># git</span>
git remote add origin https:<span style="color:#f92672">//</span>gitee<span style="color:#f92672">.</span>com<span style="color:#f92672">/....</span>git

<span style="color:#75715e">#</span>
git push <span style="color:#f92672">-</span>u origin master

</code></pre></div>
</div>


    </main>

    
  </body>
</html>
